﻿using System;
using System.Windows.Forms;

namespace HtmlMaker
{
    public partial class addDataSource : Form
    {
        public addDataSource()
        {
            InitializeComponent();
        }

        public string name { get; set; }
        public string url { get; set; }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.name = textBox1.Text.Trim();
            this.url = textBox2.Text.Trim();
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
    }
}
